<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<center>标签内容显示</center>
<center>
    <span th:text="${message}"></span>

</center>

<table>
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>操作</td>
    </tr>

    <tr th:each="ty,iterStat : ${pages.content}">
        <!--
        部分内容的设置
        -->
        <td th:text="${iterStat.count}"></td>
        <td th:text="${ty.name}"></td>
        <td>
            <!--<a th:href="@{/type/toModify/}+${ty.id}" href="#">修改</a>-->
            <a th:href="@{/type/toModify/{id}(id=${ty.id})}">修改</a>
        </td>
        <!--<a th:href="@{/type/toModify/{id}(${ty.id})" href="#">修改</a>-->


    </tr>


</table>
<a th:href="@{/type/listType(page=${pages.number}-1)}" th:unless="${pages.first}" href="#">上一页</a>
<a th:href="@{/type/listType(page=${pages.number}+1)}" th:unless="${pages.last}" href="#">下一页</a>
<br>
<a th:href="@{/type/toAdd}" href="#">添加</a>


</body>
</html>